home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
pascal
/
tphers01.zip
/
HER2HFN.PL
< prev
next >
Wrap
Text File
|
1991-09-08
|
552b
|
20 lines
##############################################################################
# Preprocessor which filters the Hershey OC files for use with the TPHersh
# unit.
#
# Basically, all this program does is to filter out all embedded newlines
# in the definition of a Hershey glyph.
##############################################################################
while(<>) {
if (/(.....)(...)/) {
$a1=$1;
$a2=$2;
if (($a1=~ /^\s*\d+$/) && ($a2=~ /^\s*\d+$/) && ($. > 1) )
{ print "\n"; }
}
chop;
print;
}